/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'

const chartsRouter = {
    path: '/charts',
    component: Layout,
    redirect: 'noredirect',
    name: 'Charts',
    meta: {
        title: 'charts',
        icon: 'chart',
        guid: '8cbec261-1e34-11ef-a12f-00163e0acd8d',
        roles: ['admin']
    },
    children: [{
            path: 'keyboard',
            component: () =>
                import ('@/views/charts/keyboard'),
            name: 'KeyboardChart',
            meta: {
                title: 'keyboardChart',
                noCache: true,
                guid: 'a889fba1-1e34-11ef-a12f-00163e0acd8d',
                roles: ['admin']
            }
        },
        {
            path: 'line',
            component: () =>
                import ('@/views/charts/line'),
            name: 'LineChart',
            meta: {
                title: 'lineChart',
                noCache: true,
                guid: 'b2aac16a-1e34-11ef-a12f-00163e0acd8d',
                roles: ['admin']
            }
        },
        {
            path: 'mixchart',
            component: () =>
                import ('@/views/charts/mixChart'),
            name: 'MixChart',
            meta: {
                title: 'mixChart',
                noCache: true,
                guid: 'ba38a797-1e34-11ef-a12f-00163e0acd8d',
                roles: ['admin']
            }
        }
    ]
}

export default chartsRouter